//
//  oldActivityTableViewCell.m
//  laonianbang
//
//  Created by 勇拓 李 on 18/4/3.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldActivityTableViewCell.h"

@interface oldActivityTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *label_title;
@property (weak, nonatomic) IBOutlet UILabel *label_organization;
@property (weak, nonatomic) IBOutlet UILabel *label_introduction;
@property (weak, nonatomic) IBOutlet UILabel *label_number;
@property (weak, nonatomic) IBOutlet UILabel *label_status;

@end

@implementation oldActivityTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setActivity:(oldActivity *)activity
{
    _activity = activity;
    _label_title.text = activity.title;
    _label_organization.text = [NSString stringWithFormat:@"发起人/组织：%@", activity.owner];
    _label_introduction.text = [NSString stringWithFormat:@"活动简介：%@", activity.content];
    _label_number.text = [NSString stringWithFormat:@"已报名：%@人", activity.joinCount];
    
    _label_status.text = activity.status;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
